% Paquetes incluidos:
% ======== =========
\usepackage{amsfonts}
\usepackage[spanish]{babel}
% Paquetes específicos de Beamer
\usepackage{beamerthemeshadow}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[utf8]{inputenc}
%\usepackage{ragged2e} -> Justificado
\usepackage{tikz}
\usepackage{times}
\usepackage{listings}
\usepackage{colortbl}
\usetikzlibrary{arrows,shapes,snakes}

%---------Listing---------------------------------
%-- Formato de los listados de código
\lstset{ frame=Ltb,
     framerule=0pt,
     boxpos=c,
     aboveskip=0.5cm,
     framextopmargin=3pt,
     framexbottommargin=3pt,
     framexleftmargin=0.4cm,
     framexrightmargin=-3cm,
     framesep=0pt,
     rulesep=.4pt,
     %
     stringstyle=\ttfamily\color{burdeos},
     identifierstyle=,
     showstringspaces = false,
     basicstyle=\small\ttfamily,
     commentstyle=\color{violeta},
     keywordstyle=\bfseries,
   }
 
% minimizar fragmentado de listados
\lstnewenvironment{listing}[1][]
   {\lstset{#1}\pagebreak[0]}{\pagebreak[0]}

% estilo de consola   
\lstdefinestyle{consola}
   {basicstyle=\scriptsize\bf\ttfamily,
    backgroundcolor=\color{gray75},
   }
   
\lstdefinestyle{consola-trans}
   {basicstyle=\scriptsize\bf\ttfamily,
   }
   
%estilo para C
\lstdefinestyle{C}
   {language=C,
     %
     numbers=left,
     numbersep=15pt,
     numberstyle=\tiny,
     numberfirstline = false,
     breaklines=true,
     emptylines=2,
   }

%estilo para C++
\lstdefinestyle{C++}
   {language=C++,
     %
     breaklines=true,
     emptylines=2,
   }

%estilo para Haskell
\lstdefinestyle{haskell}
   {language=Haskell,
     %
     breaklines=true,
     emptylines=2,
   }
